<template>
  <div>
    <div class="dashboard-notice"><span>温馨提示：</span>此代码生成需要依赖于固定的项目 < https://gitee.com/unknowpupil/init-parent.git >
      生成可用
    </div>
    <div class="dashboard-container">
       <div class="el_avatar">
         <img class="avatar" src="https://i.gtimg.cn/club/item/face/img/2/16022_100.gif" style="object-fit: cover;">
       </div>
      <div class="text-box">
        <div class="dashboard-text-1">您好！ 看到你好开心呀。</div>
        <div class="dashboard-text-2"> 作者寄语：不是你始终没有遇到对的人，而是你始终没改掉错误的自己</div>
      </div>

    </div>
  </div>


</template>

<script>

  export default {
    name: 'Dashboard',
    data() {
      return {}
    },
    created() {
    },
    methods: {}
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .dashboard {
    &-container {
      /* line-height: 30px;*/
      margin: 30px;
      background-color: white;
      border-radius: 2.5px;
      border: 1px solid #ebeef5;
      overflow: hidden;
      color: #303133;
      transition: .3s;

    }


  }

  div {
    display: block;
  }
.dashboard-container{
  display: flex;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}
  .el_avatar {
    /*padding: 20px;*/
    margin: 0 20px 0 0;
    text-align: left;
    width: 60px;
    height: 60px;
    /*margin-right: 20px;*/
    border-radius: 50%;
  }

  .avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /*margin-top: 20px;*/
    /*margin-bottom: 20px;*/
    /*text-align: left;*/
    /*width: 60px;*/
    /*height: 60px;*/
    /*margin-right: 20px;*/
    /*border-radius: 50%;*/
  }
.text-box{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
  .dashboard-notice {

    margin: 30px;
    font-size: 5px;
    padding-top: 1px;
    padding-bottom: 1px;

    text-align: left;
    padding-left: 10px;
    line-height: 30px;

    color: #ff4d4f;
    background-color: rgba(255, 77, 79, .1);
    border: 1px solid #ff4d4f;
  }

  .dashboard-text-2 {
    margin-bottom: 15px;
    font-size: 12px;
    color: #999999;
  }

  .dashboard-text-1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
  }


</style>
